package com.library.service;


import com.library.bean.User;

import java.util.Map;

public interface UserService {

    //根据用户账号和密码进行登录
    Map<String, Object> selectUser(User user);

    //注册用户
    int insertUser(User user);

    /**
     * 修改头像
     * @param username
     * @param headImg
     * @return
     */
    int updateHeadImg(String username,String headImg);

}
